package com.ruoyi.project.system.order.order.dto;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.system.order.order.domain.OrderOrder;
import com.ruoyi.project.system.order.ordergoods.dto.OrderGoodsDto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 功能：
 *
 * @author：dell
 * @create：2020/6/18 15:40
 * @version：2020 Version：1.0
 * @company：老屋新房 Created with IntelliJ IDEA
 */
public class OrderOrderDto extends OrderOrder {
	//买家昵称
	@Excel(name = "买家昵称")
	private String userName;


	//商品集合
	private List<OrderGoodsDto> goodsList;

	//购物车
	private ArrayList cartIds;

	//退款金额
	private BigDecimal refundPrice;
	//退款状态
	private Integer refundStatus;
	//退款原因
	private String result;
	//申请时间
	private Date refundCreated;
	//结束时间戳
	private Long endTimeL;

	//售后类型
	private Integer refuseType;
	//退款时间
	private Date refundTime;
	//退款编号
	private String refundNo;
	//收货人
	private String refundConsigneeName;
	//收货人电话
	private String refundConsigneeTel;
	//地址
	private String refundAddress;
	//物流名称
	private String refundShippingName;
	//物流单号
	private String refundShippingCode;
	//联系电话
	private String refundMobile;
	//退货说明
	private String refundNotes;
	//售后单ID
	private String refundId;
    /** 数量 */
    @Excel(name = "数量")
    private Long total;

    /** 商品名 */
    @Excel(name = "商品名")
    private String goodsName;

    /** SKU */
    @Excel(name = "SKU")
    private String sku;

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsProductSpec() {
        return goodsProductSpec;
    }

    public void setGoodsProductSpec(String goodsProductSpec) {
        this.goodsProductSpec = goodsProductSpec;
    }

    /** 货品规格 */
    @Excel(name = "货品规格")
    private String goodsProductSpec;


    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public List<OrderGoodsDto> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<OrderGoodsDto> goodsList) {
		this.goodsList = goodsList;
	}

	public ArrayList getCartIds() {
		return cartIds;
	}

	public void setCartIds(ArrayList cartIds) {
		this.cartIds = cartIds;
	}

	public BigDecimal getRefundPrice() {
		return refundPrice;
	}

	public void setRefundPrice(BigDecimal refundPrice) {
		this.refundPrice = refundPrice;
	}

	public Integer getRefundStatus() {
		return refundStatus;
	}

	public void setRefundStatus(Integer refundStatus) {
		this.refundStatus = refundStatus;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public Date getRefundCreated() {
		return refundCreated;
	}

	public void setRefundCreated(Date refundCreated) {
		this.refundCreated = refundCreated;
	}

	public Long getEndTimeL() {
		return endTimeL;
	}

	public void setEndTimeL(Date created) {
		this.endTimeL = new Date(created.getTime()+(15*60*1000)).getTime();
	}

	public Integer getRefuseType() {
		return refuseType;
	}

	public void setRefuseType(Integer refuseType) {
		this.refuseType = refuseType;
	}

	public Date getRefundTime() {
		return refundTime;
	}

	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}

	public String getRefundNo() {
		return refundNo;
	}

	public void setRefundNo(String refundNo) {
		this.refundNo = refundNo;
	}

	public String getRefundConsigneeName() {
		return refundConsigneeName;
	}

	public void setRefundConsigneeName(String refundConsigneeName) {
		this.refundConsigneeName = refundConsigneeName;
	}

	public String getRefundConsigneeTel() {
		return refundConsigneeTel;
	}

	public void setRefundConsigneeTel(String refundConsigneeTel) {
		this.refundConsigneeTel = refundConsigneeTel;
	}

	public String getRefundAddress() {
		return refundAddress;
	}

	public void setRefundAddress(String refundAddress) {
		this.refundAddress = refundAddress;
	}

	public String getRefundShippingName() {
		return refundShippingName;
	}

	public void setRefundShippingName(String refundShippingName) {
		this.refundShippingName = refundShippingName;
	}

	public String getRefundShippingCode() {
		return refundShippingCode;
	}

	public void setRefundShippingCode(String refundShippingCode) {
		this.refundShippingCode = refundShippingCode;
	}

	public String getRefundMobile() {
		return refundMobile;
	}

	public void setRefundMobile(String refundMobile) {
		this.refundMobile = refundMobile;
	}

	public String getRefundNotes() {
		return refundNotes;
	}

	public void setRefundNotes(String refundNotes) {
		this.refundNotes = refundNotes;
	}

	public String getRefundId() {
		return refundId;
	}

	public void setRefundId(String refundId) {
		this.refundId = refundId;
	}
}
